From: Florian Müllner Date: Fri, 27 Mar 2020 15:51:47 +0000 (+0100) Subject: cldr2json: Don't use deprecated method X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~751^2^2~40 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=dd7727e315ac6e01ca9b5b6b9303cda19cb9f785;p=gnome-shell.git cldr2json: Don't use deprecated method Replace the deprecated 'warn()' with 'warning()' to shut up a runtime warning. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1136 --- diff --git a/data/cldr2json/cldr2json.py b/data/cldr2json/cldr2json.py index 360030b78..7d6d71792 100755 --- a/data/cldr2json/cldr2json.py +++ b/data/cldr2json/cldr2json.py @@ -161,7 +161,7 @@ def convert_file(source_file, destination_path): try: xkb_name = locale_to_xkb(root["locale"], root["name"]) except KeyError as e: - logging.warn(e) + logging.warning(e) return False destination_file = os.path.join(destination_path, xkb_name + ".json")